package com.financing.wap.dto;

import java.math.BigDecimal;
import java.util.List;

import com.financing.wap.common.CommonConstantUtil;
import com.financing.wap.vo.ProductProfitAndRebateVO;


/**
 * @author lisu
 */
public class ProductBasicInfoDTO extends BaseDTO {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1832789766264766563L;
	
 	/**
	 * 产品名称
	 */
	private String name;
	
	/**
	 * 产品类型
	 */
	private String type;
	
	/**
	 * 产品期限
	 */
	private int dueTime;
	
	/**
	 * 发行总规模
	 */
	private BigDecimal allIssuingScale;
	
	/**
	 * 付息方式
	 */
	private String paymentInterestType;	
	
	/***
	 * 付息方式  map
	 */
	private String paymentInterestTypeDesc;
	
	/**
	 * 发行机构
	 */
	private String investOwner;
	
	/**
	 * 预期年化收益
	 */
	private String annualRevenueExpect;
	
	/**
	 * 募集金额的需求方
	 */
	private String pProjectOwner;
	
	private String pPublicStatus;
	
	private String pSaleStatus;
	
	private String showStatus;
	
	private String investType=""; //P_INVEST_TYPE  投资方向  01:房地产类  02:金融市场 03:基础建设04:其他05城投债06工商企业
	
	//大小配比
	private String pSizeRatioType;  //大小配比类型(01:小额畅打,02:已配出小额,03:严格配比,04:全大额)
	
	private String pSizeRatioExplain;//大小配比说明
	
	//产品简介
	private String summary;
	
	//风险控制
	private String fxkz;
	
	//收益区间
	private List<ProductProfitAndRebateVO> profitRebateList;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getDueTime() {
		return dueTime;
	}

	public void setDueTime(int dueTime) {
		this.dueTime = dueTime;
	}

	public String getPaymentInterestType() {
		return paymentInterestType;
	}

	public void setPaymentInterestType(String paymentInterestType) {
		this.paymentInterestType = paymentInterestType;
	}

	public String getInvestOwner() {
		return investOwner;
	}

	public void setInvestOwner(String investOwner) {
		this.investOwner = investOwner;
	}

	public String getAnnualRevenueExpect() {
		return annualRevenueExpect;
	}

	public void setAnnualRevenueExpect(String annualRevenueExpect) {
		this.annualRevenueExpect = annualRevenueExpect;
	}

	public BigDecimal getAllIssuingScale() {
		return allIssuingScale;
	}

	public void setAllIssuingScale(BigDecimal allIssuingScale) {
		this.allIssuingScale = allIssuingScale;
	}

	public String getpProjectOwner() {
		return pProjectOwner;
	}

	public void setpProjectOwner(String pProjectOwner) {
		this.pProjectOwner = pProjectOwner;
	}

	public String getpPublicStatus() {
		return pPublicStatus;
	}

	public void setpPublicStatus(String pPublicStatus) {
		this.pPublicStatus = pPublicStatus;
	}

	public String getpSaleStatus() {
		return pSaleStatus;
	}

	public void setpSaleStatus(String pSaleStatus) {
		this.pSaleStatus = pSaleStatus;
	}

	public String getShowStatus() {
		boolean b = this.getStatus()==3
				&&"2".equals(this.getpPublicStatus())
				&&!"01".equals(this.getpSaleStatus());
		if(b){
			return "1";
		}
		return "0";
	}

	public void setShowStatus(String showStatus) {
		this.showStatus = showStatus;
	}

	public String getpSizeRatioType() {
		return pSizeRatioType;
	}

	public void setpSizeRatioType(String pSizeRatioType) {
		this.pSizeRatioType = pSizeRatioType;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public List<ProductProfitAndRebateVO> getProfitRebateList() {
		return profitRebateList;
	}

	public void setProfitRebateList(List<ProductProfitAndRebateVO> profitRebateList) {
		this.profitRebateList = profitRebateList;
	}

	public String getpSizeRatioExplain() {
		return pSizeRatioExplain;
	}

	public void setpSizeRatioExplain(String pSizeRatioExplain) {
		this.pSizeRatioExplain = pSizeRatioExplain;
	}
	public String getPaymentInterestTypeDesc(){
		return CommonConstantUtil.getPaymentInterestTypeDesc(paymentInterestType);
	}

	public String getFxkz() {
		return fxkz;
	}

	public void setFxkz(String fxkz) {
		this.fxkz = fxkz;
	}

	public void setPaymentInterestTypeDesc(String paymentInterestTypeDesc) {
		this.paymentInterestTypeDesc = paymentInterestTypeDesc;
	}
	/**
	 * 投资行业
	 * @return
	 */
	public String getInvestDesc(){
		return CommonConstantUtil.getInvestDesc(investType);
	}

	public String getInvestType() {
		return investType;
	}

	public void setInvestType(String investType) {
		this.investType = investType;
	}
	
}